GBML manual / Constants

BTN_RIGHT

The GBA’s RIGHT button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_RIGHT: constant

Description

Names the GBA's RIGHT button, for passing to btn_held, btn_pressed or btn_released - the d-pad's right direction. Prefer btn_dx for an axis reading.

Example

if (btn_pressed(BTN_RIGHT)) {
    var fired = true;
}

Checks for a fresh press of RIGHT this frame.

See also: btn_heldbtn_pressedbtn_released